package demo2.jt;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class User {
    public static void main(String[] args) {
        ApplicationContext a = new AnnotationConfigApplicationContext(Springconfig.class);
        Dog bean = a.getBean(Dog.class);
         a.getBean(Dog.class);
         a.getBean(Dog.class);
         a.getBean(Dog.class);
         bean.hello();

    }
}
